import { getRequest, postRequest } from "@/lib/axios";

// 授信
export const cardsCreditListApi = (param, type) => {
  return getRequest("/exassistant/cards/credit", param, type);
};
// 授信
export const cardsCreditUpdateApi = (param) => {
  return postRequest("/exassistant/cards/credit", param);
};
// 卡账户
export const cardsAccountsApi = (param, type) => {
  return postRequest("/exassistant/cards/accounts", param, type);
};
// 卡账号流水
export const cardsAccountsRecordsApi = (param, type) => {
  return postRequest("/exassistant/cards/accounts_records", param, type);
};
// 持卡人
export const cardsHoldersApi = (param, type) => {
  return postRequest("/exassistant/cards/holders", param, type);
};
// 卡片列表
export const cardsListApi = (param, type) => {
  return postRequest("/exassistant/cards/list", param, type);
};
// 卡交易记录
export const cardsTransactionsApi = (param, type) => {
  return postRequest("/exassistant/cards/transactions", param, type);
};
// 商户配置
export const cardsMerchantConfigApi = (param, type) => {
  return getRequest("/exassistant/cards/mer_config", param, type);
};
// 商户配置更新
export const cardsMerchantConfigUpdateApi = (param) => {
  return postRequest("/exassistant/cards/mer_config", param);
};
// 开卡币种
export const cardsCurrencyApi = (param, type) => {
  return getRequest("/exassistant/cards/currency", param, type);
};
// 开卡币种更新
export const cardsCurrencyUpdateApi = (param) => {
  return postRequest("/exassistant/cards/currency", param);
};
// 设置卡片号码
export const SetCardNumberApi = (param) => {
  return postRequest("/exassistant/cards/set_card_number", param);
};
// 线下卡操作申请记录
export const cardsOfflineOperateApi = (param) => {
  return postRequest("/exassistant/cards/operate", param);
};
// 线下卡申请审核
export const cardsOfflineOperateReviewApi = (param) => {
  return postRequest("/exassistant/cards/operate_review", param);
};
